<template>
  <div class="hello">
    <h2>欢迎来到天津理工大学信息交流平台！</h2>
  </div>
</template>

<script>
import axios from "axios";

export default {
  name: 'HelloWorld',
  data() {
    return {
      baseUrl: "http://192.168.1.8:8080"
    }
  },
  mounted() {
    this.testHello();
  },
  methods: {
    testHello() {
      const url = this.baseUrl + "/user/test";
      axios.get(url).then(res => {
        console.log('res', res.data);
      }).catch(err => {
        console.log('err', err);
      })
    }
  }
}
</script>
